<html>
   <head>
      <link rel="stylesheet" type="text/css" href="style.css" />
   </head>
   <body onload="">
<h2 class="comptitle">Compound Module <i>Host802154_2400MHz</i></h2>
<b>Package:</b> org.mixim.modules.node<br/><b>File: <a href="modules-node-Host802154_2400MHz.ned.html">modules/node/Host802154_2400MHz.ned</a></b><br/>
<p>This NED module defines a host using an IEEE 802.15.4 transceiver at 2.4GHz
for wireless communications, that can be used to simulate wireless sensor
networks. </p>
<p>For instance, you can use it to compare your own MAC protocol to
the 802.15.4 non beacon enabled MAC protocol, or to evaluate IEEE 802.15.4
wireless sensor networks. It is also a good starting point to define your
own Host file.</p>
<p>This model was independently validated on a wireless sensor network testbed.
For more information, see 
Accurate Timeliness Simulations for Real-Time Wireless Sensor Networks,
J. Rousselot, J.-D. Decotignie, M. Aoun, P. van der Stok, R. Serna Oliver,
G. Fohler. In Proceedings of the 2009 Third UKSim European Symposium on Computer 
Modeling and Simulation. <a href="http://dx.doi.org/10.1109/EMS.2009.34">http://dx.doi.org/10.1109/EMS.2009.34</a>.</p>
<p><b>Author:</b> J&eacute;r&ocirc;me Rousselot</p>
<img src="org.mixim.modules.node.Host802154_2400MHz-type.png" ismap="yes" usemap="#type-diagram"/><map name="type-diagram">
<area shape="rect" href="org.mixim.base.modules.BaseUtility.html" title="BaseUtility" alt="BaseUtility" coords="274,59,318,120">
<area shape="rect" href="org.mixim.modules.power.battery.BatteryStats.html" title="BatteryStats" alt="BatteryStats" coords="254,256,334,317">
<area shape="rect" href="org.mixim.modules.power.battery.SimpleBattery.html" title="SimpleBattery" alt="SimpleBattery" coords="271,185,318,246">
<area shape="rect" href="org.mixim.base.modules.BaseMobility.html" title="BaseMobility" alt="BaseMobility" coords="267,119,321,180">
<area shape="rect" href="org.mixim.modules.nic.Nic802154_TI_CC2420.html" title="Nic802154_TI_CC2420" alt="Nic802154_TI_CC2420" coords="68,264,112,325">
<area shape="rect" href="org.mixim.base.modules.IBaseNetwLayer.html" title="IBaseNetwLayer" alt="IBaseNetwLayer" coords="68,158,112,219">
<area shape="rect" href="org.mixim.modules.transport.Aggregation.html" title="Aggregation" alt="Aggregation" coords="43,85,102,142">
<area shape="rect" href="org.mixim.modules.netw.ArpHost.html" title="ArpHost" alt="ArpHost" coords="184,185,228,246">
<area shape="rect" href="org.mixim.modules.application.SensorApplLayer.html" title="SensorApplLayer" alt="SensorApplLayer" coords="68,59,112,120">
</map>
<h3 class="subtitle">Usage diagram:</h3>
<p>The following diagram shows usage relationships between types.
Unresolved types are missing from the diagram. Click <a href="full-ned-usage-diagram.html">here</a> to see the full picture.</p>
<img src="org.mixim.modules.node.Host802154_2400MHz-usage.png" ismap="yes" usemap="#usage-diagram"/><map name="usage-diagram"><area shape="rect" id="node1" href="org.mixim.modules.node.Host802154_2400MHz.html" title="Compound Module Host802154_2400MHz" alt="" coords="560,83,715,111">
<area shape="rect" id="node2" href="org.mixim.modules.netw.ArpHost.html" title="Simple Module ArpHost" alt="" coords="5,161,77,189">
<area shape="rect" id="node4" href="org.mixim.base.modules.BaseMobility.html" title="Simple Module BaseMobility" alt="" coords="101,161,197,189">
<area shape="rect" id="node6" href="ned.IdealChannel.html" title="Channel IdealChannel" alt="" coords="221,161,320,189">
<area shape="rect" id="node8" href="org.mixim.modules.nic.Nic802154_TI_CC2420.html" title="Compound Module Nic802154_TI_CC2420" alt="" coords="344,161,501,189">
<area shape="rect" id="node10" href="org.mixim.modules.power.battery.SimpleBattery.html" title="Simple Module SimpleBattery" alt="" coords="525,161,629,189">
<area shape="rect" id="node12" href="org.mixim.modules.transport.Aggregation.html" title="Simple Module Aggregation" alt="" coords="653,161,744,189">
<area shape="rect" id="node14" href="org.mixim.modules.power.battery.BatteryStats.html" title="Simple Module BatteryStats" alt="" coords="768,161,861,189">
<area shape="rect" id="node16" href="org.mixim.base.modules.BaseUtility.html" title="Simple Module BaseUtility" alt="" coords="885,161,971,189">
<area shape="rect" id="node18" href="org.mixim.base.modules.IBaseNetwLayer.html" title="Module Interface IBaseNetwLayer" alt="" coords="995,161,1112,189">
<area shape="rect" id="node20" href="org.mixim.modules.application.SensorApplLayer.html" title="Simple Module SensorApplLayer" alt="" coords="1136,161,1256,189">
<area shape="rect" id="node22" href="org.mixim.examples.WSNRouting.WSNRouting.html" title="Network WSNRouting" alt="" coords="588,6,687,34">
</map>
<h3 class="subtitle">Inheritance diagram:</h3>
<p>The following diagram shows inheritance relationships for this type.
Unresolved types are missing from the diagram. Click <a href="full-ned-inheritance-diagram.html">here</a> to see the full picture.</p>
<img src="org.mixim.modules.node.Host802154_2400MHz-inheritance.png" ismap="yes" usemap="#inheritance-diagram"/><map name="inheritance-diagram"><area shape="rect" id="node1" href="org.mixim.modules.node.Host802154_2400MHz.html" title="Compound Module Host802154_2400MHz" alt="" coords="5,6,160,34">
</map>
<h3 class="subtitle">Networks:</h3>
<table>
<tr>
   <td>
      <a href="org.mixim.examples.WSNRouting.WSNRouting.html">WSNRouting</a>
      <i> (network)</i>
   </td>
   <td>

<p>This example shows how to simulate wireless sensor networks.
Three different routing protocols are considered, for different traffic 
types:
convergecast, with Wiseroute;
network-level broadcast, with flooding;
and probabilistic broadcast.</p>
   </td>
</tr>
</table>
<h3 class="subtitle">Parameters:</h3>
<table class="paramtable">
   <tr>
      <th>Name</th>
      <th>Type</th>
      <th>Default value</th>
      <th>Description</th>
   </tr>
<tr class="local">
   <td width="150">numHosts</td>
   <td width="100">
      <i>double</i>
   </td>
   <td width="120"></td>
   <td>
<p>total number of hosts in the network</p>
   </td>
</tr>
<tr class="local">
   <td width="150">netwType</td>
   <td width="100">
      <i>string</i>
   </td>
   <td width="120">"DummyRoute"</td>
   <td>
<p>type of the network layer</p>
   </td>
</tr>
</table>
<h3 class="subtitle">Properties:</h3>
<table class="paramtable">
   <tr>
      <th>Name</th>
      <th>Value</th>
      <th>Description</th>
   </tr>
<tr>
   <td width="150">display</td>
   <td width="100"><i>bgb=356,318,white;bgp=10,10;b=40,40,rect;i=device/usb</i></td>
   <td></td>
</tr>
</table>
<h3 class="subtitle">Gates:</h3>
<table class="paramtable">
   <tr>
      <th>Name</th>
      <th>Direction</th>
      <th>Size</th>
      <th>Description</th>
   </tr>
<tr class="local">
   <td width="150">radioIn</xsl:if></td>
   <td width="100"><i>input</i></td>
   <td width="50"></td>   <td>
</td>
</tr>
</table>
<h3 class="subtitle">Unassigned submodule parameters:</h3>
<table class="paramtable">
   <tr>
      <th>Name</th>
      <th>Type</th>
      <th>Default value</th>
      <th>Description</th>
   </tr>
<tr>
   <td><a href="org.mixim.base.modules.BaseUtility.html">utility</a>.coreDebug</td>
   <td width="100">
      <i>bool</i>
   </td>
   <td width="120"></td>
   <td>
<p>debug switch for the base framework</p>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.modules.power.battery.BatteryStats.html">batteryStats</a>.debug</td>
   <td width="100">
      <i>bool</i>
   </td>
   <td width="120"></td>
   <td>
<p>write per-activity and per-device statistics to omnetpp.sca
(if false, only total energy and lifetime are written)</p>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.modules.power.battery.BatteryStats.html">batteryStats</a>.detail</td>
   <td width="100">
      <i>bool</i>
   </td>
   <td width="120">false</td>
   <td>
<p>subscribe to battery status and record time series
data in omnetpp.vec (resolution depends on battery's 
publishDelta)</p>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.modules.power.battery.BatteryStats.html">batteryStats</a>.timeSeries</td>
   <td width="100">
      <i>bool</i>
   </td>
   <td width="120">false</td>
   <td>   </td>
</tr>
<tr>
   <td><a href="org.mixim.modules.power.battery.SimpleBattery.html">battery</a>.debug</td>
   <td width="100">
      <i>bool</i>
   </td>
   <td width="120"></td>
   <td>   </td>
</tr>
<tr>
   <td><a href="org.mixim.modules.power.battery.SimpleBattery.html">battery</a>.nominal</td>
   <td width="100">
      <i>double</i>
   </td>
   <td width="120">1000 mAh</td>
   <td>
<p>nominal battery capacity</p>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.modules.power.battery.SimpleBattery.html">battery</a>.capacity</td>
   <td width="100">
      <i>double</i>
   </td>
   <td width="120">1000 mAh</td>
   <td>
<p>battery capacity</p>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.modules.power.battery.SimpleBattery.html">battery</a>.voltage</td>
   <td width="100">
      <i>double</i>
   </td>
   <td width="120">3 V</td>
   <td>
<p>nominal voltage</p>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.modules.power.battery.SimpleBattery.html">battery</a>.resolution</td>
   <td width="100">
      <i>double</i>
   </td>
   <td width="120">60 s</td>
   <td>
<p>capacity is updated at least every resolution time</p>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.modules.power.battery.SimpleBattery.html">battery</a>.publishDelta</td>
   <td width="100">
      <i>double</i>
   </td>
   <td width="120">1</td>
   <td>
<p>if &gt; 0, capacity is published to the BB each publishTime 
interval</p>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.modules.power.battery.SimpleBattery.html">battery</a>.publishTime</td>
   <td width="100">
      <i>double</i>
   </td>
   <td width="120">60 s</td>
   <td>
<p>number of modules that will draw energy from the 
battery</p>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.modules.power.battery.SimpleBattery.html">battery</a>.numDevices</td>
   <td width="100">
      <i>int</i>
   </td>
   <td width="120">1</td>
   <td>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.base.modules.BaseMobility.html">mobility</a>.coreDebug</td>
   <td width="100">
      <i>bool</i>
   </td>
   <td width="120"></td>
   <td>
<p>debug switch for the core framework</p>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.base.modules.BaseMobility.html">mobility</a>.x</td>
   <td width="100">
      <i>double</i>
   </td>
   <td width="120"></td>
   <td>
<p>x coordinate of the nodes' position (-1 = random)</p>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.base.modules.BaseMobility.html">mobility</a>.y</td>
   <td width="100">
      <i>double</i>
   </td>
   <td width="120"></td>
   <td>
<p>y coordinate of the nodes' position (-1 = random)</p>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.base.modules.BaseMobility.html">mobility</a>.z</td>
   <td width="100">
      <i>double</i>
   </td>
   <td width="120"></td>
   <td>
<p>z coordinate of the nodes' position (-1 = random)</p>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.modules.nic.Nic802154_TI_CC2420.html">nic</a>.<a href="org.mixim.modules.phy.PhyLayerBattery.html">phy</a>.coreDebug</td>
   <td width="100">
      <i>bool</i>
   </td>
   <td width="120"></td>
   <td>
<p>debug switch for core framework</p>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.modules.nic.Nic802154_TI_CC2420.html">nic</a>.<a href="org.mixim.modules.phy.PhyLayerBattery.html">phy</a>.recordStats</td>
   <td width="100">
      <i>bool</i>
   </td>
   <td width="120">false</td>
   <td>
<p>enable/disable tracking of statistics (eg. cOutvectors)</p>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.modules.nic.Nic802154_TI_CC2420.html">nic</a>.<a href="org.mixim.modules.phy.PhyLayerBattery.html">phy</a>.usePropagationDelay</td>
   <td width="100">
      <i>bool</i>
   </td>
   <td width="120"></td>
   <td>
<p>Should transmission delay be simulated?</p>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.modules.nic.Nic802154_TI_CC2420.html">nic</a>.<a href="org.mixim.modules.phy.PhyLayerBattery.html">phy</a>.useThermalNoise</td>
   <td width="100">
      <i>bool</i>
   </td>
   <td width="120"></td>
   <td>
<p>should thermal noise be considered?</p>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.modules.nic.Nic802154_TI_CC2420.html">nic</a>.<a href="org.mixim.modules.phy.PhyLayerBattery.html">phy</a>.analogueModels</td>
   <td width="100">
      <i>xml</i>
   </td>
   <td width="120"></td>
   <td>
<p>Specification of the analogue models to use and their parameters</p>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.modules.nic.Nic802154_TI_CC2420.html">nic</a>.<a href="org.mixim.modules.phy.PhyLayerBattery.html">phy</a>.sensitivity</td>
   <td width="100">
      <i>double</i>
   </td>
   <td width="120"></td>
   <td>
<p>The sensitivity of the physical layer [dBm]</p>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.modules.nic.Nic802154_TI_CC2420.html">nic</a>.<a href="org.mixim.modules.phy.PhyLayerBattery.html">phy</a>.maxTXPower</td>
   <td width="100">
      <i>double</i>
   </td>
   <td width="120"></td>
   <td>
<p>The maximum transimission power of the physical layer [mW]</p>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.modules.nic.Nic802154_TI_CC2420.html">nic</a>.<a href="org.mixim.modules.phy.PhyLayerBattery.html">phy</a>.initialRadioState</td>
   <td width="100">
      <i>int</i>
   </td>
   <td width="120">0</td>
   <td>
<p>state the radio is initially in</p>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.modules.nic.Nic802154_TI_CC2420.html">nic</a>.<a href="org.mixim.modules.phy.PhyLayerBattery.html">phy</a>.radioMinAtt</td>
   <td width="100">
      <i>double</i>
   </td>
   <td width="120">1.0</td>
   <td>
<p>radios gain factor (attenuation) while receiving</p>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.modules.nic.Nic802154_TI_CC2420.html">nic</a>.<a href="org.mixim.modules.phy.PhyLayerBattery.html">phy</a>.radioMaxAtt</td>
   <td width="100">
      <i>double</i>
   </td>
   <td width="120">0.0</td>
   <td>
<p>radios gain factor (attenuation) while not receiving</p>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.modules.nic.Nic802154_TI_CC2420.html">nic</a>.<a href="org.mixim.modules.phy.PhyLayerBattery.html">phy</a>.nbRadioChannels</td>
   <td width="100">
      <i>int</i>
   </td>
   <td width="120">1</td>
   <td>
<p>Number of available radio channels. Defaults to single channel radio.</p>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.modules.nic.Nic802154_TI_CC2420.html">nic</a>.<a href="org.mixim.modules.phy.PhyLayerBattery.html">phy</a>.initialRadioChannel</td>
   <td width="100">
      <i>int</i>
   </td>
   <td width="120">0</td>
   <td>
<p>Initial radio channel.</p>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.modules.nic.Nic802154_TI_CC2420.html">nic</a>.<a href="org.mixim.modules.phy.PhyLayerBattery.html">phy</a>.numActivities</td>
   <td width="100">
      <i>int</i>
   </td>
   <td width="120">5</td>
   <td>
<p>the number of different power consuming activities the phy layer has
change this parameter if your decider or physical layer uses more
than the default 5 activities (sleep, rx, tx, switching, decoding)</p>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.modules.nic.Nic802154_TI_CC2420.html">nic</a>.<a href="org.mixim.modules.mac.CSMA802154.html">mac</a>.notAffectedByHostState</td>
   <td width="100">
      <i>bool</i>
   </td>
   <td width="120">false</td>
   <td>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.modules.nic.Nic802154_TI_CC2420.html">nic</a>.<a href="org.mixim.modules.mac.CSMA802154.html">mac</a>.coreDebug</td>
   <td width="100">
      <i>bool</i>
   </td>
   <td width="120"></td>
   <td>
<p>debug switch</p>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.modules.nic.Nic802154_TI_CC2420.html">nic</a>.<a href="org.mixim.modules.mac.CSMA802154.html">mac</a>.debug</td>
   <td width="100">
      <i>bool</i>
   </td>
   <td width="120">false</td>
   <td>
<p>debug switch</p>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.modules.nic.Nic802154_TI_CC2420.html">nic</a>.<a href="org.mixim.modules.mac.CSMA802154.html">mac</a>.stats</td>
   <td width="100">
      <i>bool</i>
   </td>
   <td width="120">true</td>
   <td>   </td>
</tr>
<tr>
   <td><a href="org.mixim.modules.nic.Nic802154_TI_CC2420.html">nic</a>.<a href="org.mixim.modules.mac.CSMA802154.html">mac</a>.trace</td>
   <td width="100">
      <i>bool</i>
   </td>
   <td width="120">false</td>
   <td>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.modules.nic.Nic802154_TI_CC2420.html">nic</a>.<a href="org.mixim.modules.mac.CSMA802154.html">mac</a>.queueLength</td>
   <td width="100">
      <i>double</i>
   </td>
   <td width="120">100</td>
   <td>
<p>size of the MAC queue (maximum number of packets in Tx buffer)</p>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.modules.nic.Nic802154_TI_CC2420.html">nic</a>.<a href="org.mixim.modules.mac.CSMA802154.html">mac</a>.txPower</td>
   <td width="100">
      <i>double</i>
   </td>
   <td width="120">1 mW</td>
   <td>
<p>tx power [mW]</p>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.modules.nic.Nic802154_TI_CC2420.html">nic</a>.<a href="org.mixim.modules.mac.CSMA802154.html">mac</a>.useMACAcks</td>
   <td width="100">
      <i>bool</i>
   </td>
   <td width="120">true</td>
   <td>
<p>Send/Expect MAC acks for unicast traffic?</p>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.modules.nic.Nic802154_TI_CC2420.html">nic</a>.<a href="org.mixim.modules.mac.CSMA802154.html">mac</a>.macMaxFrameRetries</td>
   <td width="100">
      <i>double</i>
   </td>
   <td width="120">3</td>
   <td>
<p>maximum number of frame retransmission
only used when usage of MAC acks is enabled</p>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.modules.nic.Nic802154_TI_CC2420.html">nic</a>.<a href="org.mixim.modules.mac.CSMA802154.html">mac</a>.macMaxCSMABackoffs</td>
   <td width="100">
      <i>double</i>
   </td>
   <td width="120">4</td>
   <td>
<p>maximum backoffs</p>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.modules.nic.Nic802154_TI_CC2420.html">nic</a>.<a href="org.mixim.modules.mac.CSMA802154.html">mac</a>.contentionWindow</td>
   <td width="100">
      <i>int</i>
   </td>
   <td width="120">2</td>
   <td>
<p># of backoff periods of the initial contention window
(for linear and constant backoff method only)</p>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.modules.nic.Nic802154_TI_CC2420.html">nic</a>.<a href="org.mixim.modules.mac.CSMA802154.html">mac</a>.macMinBE</td>
   <td width="100">
      <i>double</i>
   </td>
   <td width="120">3</td>
   <td>
<p>minimum backoff exponent (for exponential backoff method only)</p>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.modules.nic.Nic802154_TI_CC2420.html">nic</a>.<a href="org.mixim.modules.mac.CSMA802154.html">mac</a>.macMaxBE</td>
   <td width="100">
      <i>double</i>
   </td>
   <td width="120">5</td>
   <td>
<p>maximum backoff exponent (for exponential backoff method only)</p>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.base.modules.IBaseNetwLayer.html">net</a>.stats</td>
   <td width="100">
      <i>bool</i>
   </td>
   <td width="120"></td>
   <td>
<p>stats switch</p>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.base.modules.IBaseNetwLayer.html">net</a>.headerLength</td>
   <td width="100">
      <i>double</i>
   </td>
   <td width="120"></td>
   <td>
<p>length of the network packet header (in bits)</p>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.modules.transport.Aggregation.html">transport</a>.notAffectedByHostState</td>
   <td width="100">
      <i>bool</i>
   </td>
   <td width="120">false</td>
   <td>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.modules.transport.Aggregation.html">transport</a>.trace</td>
   <td width="100">
      <i>bool</i>
   </td>
   <td width="120">false</td>
   <td>   </td>
</tr>
<tr>
   <td><a href="org.mixim.modules.transport.Aggregation.html">transport</a>.stats</td>
   <td width="100">
      <i>bool</i>
   </td>
   <td width="120">true</td>
   <td>   </td>
</tr>
<tr>
   <td><a href="org.mixim.modules.transport.Aggregation.html">transport</a>.headerLength</td>
   <td width="100">
      <i>int</i>
   </td>
   <td width="120">2 byte</td>
   <td>   </td>
</tr>
<tr>
   <td><a href="org.mixim.modules.transport.Aggregation.html">transport</a>.interPacketDelay</td>
   <td width="100">
      <i>double</i>
   </td>
   <td width="120">0 s</td>
   <td>
<p>this class does not send more than two packets to the same destination in a time interPacketDelay to the lower layer. It is deactivated if this value is set to 0.</p>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.modules.transport.Aggregation.html">transport</a>.nbMaxPacketsPerAggregation</td>
   <td width="100">
      <i>int</i>
   </td>
   <td width="120">10</td>
   <td>
<p>maximum number of packets to aggregate per sending</p>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.modules.netw.ArpHost.html">arp</a>.coreDebug</td>
   <td width="100">
      <i>bool</i>
   </td>
   <td width="120"></td>
   <td>
<p>debug switch for the core framework</p>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.modules.netw.ArpHost.html">arp</a>.debug</td>
   <td width="100">
      <i>bool</i>
   </td>
   <td width="120">false</td>
   <td>
<p>enable debugging for this module</p>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.modules.netw.ArpHost.html">arp</a>.offset</td>
   <td width="100">
      <i>int</i>
   </td>
   <td width="120">0</td>
   <td>
<p>Adds an offset to node addresses</p>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.modules.application.SensorApplLayer.html">app</a>.debug</td>
   <td width="100">
      <i>bool</i>
   </td>
   <td width="120">false</td>
   <td>
<p>debug switch</p>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.modules.application.SensorApplLayer.html">app</a>.stats</td>
   <td width="100">
      <i>bool</i>
   </td>
   <td width="120">true</td>
   <td>
<p>stats generation switch</p>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.modules.application.SensorApplLayer.html">app</a>.trace</td>
   <td width="100">
      <i>bool</i>
   </td>
   <td width="120">false</td>
   <td>
<p>activates detailed logging (per source latencies and vector logging). stats must be true.</p>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.modules.application.SensorApplLayer.html">app</a>.broadcastPackets</td>
   <td width="100">
      <i>bool</i>
   </td>
   <td width="120">false</td>
   <td>
<p>send packets in broadcast mode</p>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.modules.application.SensorApplLayer.html">app</a>.nbPackets</td>
   <td width="100">
      <i>double</i>
   </td>
   <td width="120">0</td>
   <td>   </td>
</tr>
<tr>
   <td><a href="org.mixim.modules.application.SensorApplLayer.html">app</a>.destAddr</td>
   <td width="100">
      <i>int</i>
   </td>
   <td width="120">0</td>
   <td>   </td>
</tr>
<tr>
   <td><a href="org.mixim.modules.application.SensorApplLayer.html">app</a>.trafficType</td>
   <td width="100">
      <i>string</i>
   </td>
   <td width="120">"periodic"</td>
   <td>
<p>Can be one of: periodic, uniform or exponential</p>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.modules.application.SensorApplLayer.html">app</a>.trafficParam</td>
   <td width="100">
      <i>double</i>
   </td>
   <td width="120">1</td>
   <td>
<p>the mean time between two packets</p>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.modules.application.SensorApplLayer.html">app</a>.initializationTime</td>
   <td width="100">
      <i>double</i>
   </td>
   <td width="120">1 min</td>
   <td>
<p>minimum time before generation of the first packet</p>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.modules.application.SensorApplLayer.html">app</a>.headerLength</td>
   <td width="100">
      <i>int</i>
   </td>
   <td width="120">2 byte</td>
   <td>   </td>
</tr>
</table>
<h3 class="subtitle">Source code:</h3>
<pre class="src"><span style="color: #808080; font-style: italic; ">//
// This NED module defines a host using an IEEE 802.15.4 transceiver at 2.4GHz
// for wireless communications, that can be used to simulate wireless sensor
// networks. 
//
// For instance, you can use it to compare your own MAC protocol to
// the 802.15.4 non beacon enabled MAC protocol, or to evaluate IEEE 802.15.4
// wireless sensor networks. It is also a good starting point to define your
// own Host file.
//
// This model was independently validated on a wireless sensor network testbed.
// For more information, see 
// Accurate Timeliness Simulations for Real-Time Wireless Sensor Networks,
// J. Rousselot, J.-D. Decotignie, M. Aoun, P. van der Stok, R. Serna Oliver,
// G. Fohler. In Proceedings of the 2009 Third UKSim European Symposium on Computer 
// Modeling and Simulation. </span><span style="color: #800000; ">&lt;a href=&quot;http://dx.doi.org/10.1109/EMS.2009.34&quot;&gt;</span><span style="color: #808080; font-style: italic; ">http://dx.doi.org/10.1109/EMS.2009.34</span><span style="color: #800000; ">&lt;/a&gt;</span><span style="color: #808080; font-style: italic; ">.
//
// </span><span style="color: #000080; ">@author</span><span style="color: #808080; font-style: italic; "> J&eacute;r&ocirc;me Rousselot
//
</span><span style="color: #800000; font-weight: bold; ">module</span><span style="color: #000000; "> </span><span style="color: #000000; ">Host802154_2400MHz</span><span style="color: #000000; ">
{
    </span><span style="color: #800000; font-weight: bold; ">parameters</span><span style="color: #000000; ">:
        </span><span style="color: #000080; font-weight: bold; ">double</span><span style="color: #000000; "> </span><span style="color: #000000; ">numHosts</span><span style="color: #000000; ">; </span><span style="color: #808080; font-style: italic; ">// total number of hosts in the network
</span><span style="color: #000000; ">        </span><span style="color: #000080; font-weight: bold; ">string</span><span style="color: #000000; "> </span><span style="color: #000000; ">netwType</span><span style="color: #000000; "> = </span><span style="color: #800000; font-weight: bold; ">default</span><span style="color: #000000; ">(</span><span style="color: #008000; ">&quot;DummyRoute&quot;</span><span style="color: #000000; ">); </span><span style="color: #808080; font-style: italic; ">//type of the network layer
</span><span style="color: #000000; ">
        </span><span style="color: #000000; font-weight: bold; ">@display</span><span style="color: #000000; ">(</span><span style="color: #008000; ">&quot;bgb=356,318,white;bgp=10,10;b=40,40,rect;i=device/usb&quot;</span><span style="color: #000000; ">);
    </span><span style="color: #800000; font-weight: bold; ">gates</span><span style="color: #000000; ">:
        </span><span style="color: #000080; font-weight: bold; ">input</span><span style="color: #000000; "> </span><span style="color: #000000; ">radioIn</span><span style="color: #000000; ">;

    </span><span style="color: #800000; font-weight: bold; ">submodules</span><span style="color: #000000; ">:
        </span><span style="color: #000000; ">utility</span><span style="color: #000000; ">: </span><span style="color: #000000; ">BaseUtility</span><span style="color: #000000; "> {
            </span><span style="color: #800000; font-weight: bold; ">parameters</span><span style="color: #000000; ">:
                </span><span style="color: #000000; font-weight: bold; ">@display</span><span style="color: #000000; ">(</span><span style="color: #008000; ">&quot;p=292,60;i=block/blackboard&quot;</span><span style="color: #000000; ">);
        }
        </span><span style="color: #000000; ">batteryStats</span><span style="color: #000000; ">: </span><span style="color: #000000; ">BatteryStats</span><span style="color: #000000; "> {
            </span><span style="color: #000000; font-weight: bold; ">@display</span><span style="color: #000000; ">(</span><span style="color: #008000; ">&quot;p=292,257;i=block/circle&quot;</span><span style="color: #000000; ">);
            </span><span style="color: #000000; ">detail</span><span style="color: #000000; "> = </span><span style="color: #800000; font-weight: bold; ">default</span><span style="color: #000000; ">(</span><span style="color: #008000; ">false</span><span style="color: #000000; ">);
            </span><span style="color: #000000; ">timeSeries</span><span style="color: #000000; "> = </span><span style="color: #800000; font-weight: bold; ">default</span><span style="color: #000000; ">(</span><span style="color: #008000; ">false</span><span style="color: #000000; ">);
        }
        </span><span style="color: #000000; ">battery</span><span style="color: #000000; ">: </span><span style="color: #000000; ">SimpleBattery</span><span style="color: #000000; "> {
            </span><span style="color: #000000; font-weight: bold; ">@display</span><span style="color: #000000; ">(</span><span style="color: #008000; ">&quot;p=292,186;i=block/control&quot;</span><span style="color: #000000; ">);
            </span><span style="color: #000000; ">nominal</span><span style="color: #000000; "> = </span><span style="color: #800000; font-weight: bold; ">default</span><span style="color: #000000; ">(</span><span style="color: #008000; ">1000</span><span style="color: #000000; "> </span><span style="color: #000000; ">mAh</span><span style="color: #000000; ">);
            </span><span style="color: #000000; ">capacity</span><span style="color: #000000; "> = </span><span style="color: #800000; font-weight: bold; ">default</span><span style="color: #000000; ">(</span><span style="color: #008000; ">1000</span><span style="color: #000000; "> </span><span style="color: #000000; ">mAh</span><span style="color: #000000; ">);
            </span><span style="color: #000000; ">voltage</span><span style="color: #000000; "> = </span><span style="color: #800000; font-weight: bold; ">default</span><span style="color: #000000; ">(</span><span style="color: #008000; ">3</span><span style="color: #000000; "> </span><span style="color: #000000; ">V</span><span style="color: #000000; ">);
            </span><span style="color: #000000; ">resolution</span><span style="color: #000000; "> = </span><span style="color: #800000; font-weight: bold; ">default</span><span style="color: #000000; ">(</span><span style="color: #008000; ">60</span><span style="color: #000000; "> </span><span style="color: #000000; ">s</span><span style="color: #000000; ">);
            </span><span style="color: #000000; ">publishDelta</span><span style="color: #000000; "> = </span><span style="color: #800000; font-weight: bold; ">default</span><span style="color: #000000; ">(</span><span style="color: #008000; ">1</span><span style="color: #000000; ">);
            </span><span style="color: #000000; ">publishTime</span><span style="color: #000000; "> = </span><span style="color: #800000; font-weight: bold; ">default</span><span style="color: #000000; ">(</span><span style="color: #008000; ">60</span><span style="color: #000000; "> </span><span style="color: #000000; ">s</span><span style="color: #000000; ">);
            </span><span style="color: #000000; ">numDevices</span><span style="color: #000000; "> = </span><span style="color: #800000; font-weight: bold; ">default</span><span style="color: #000000; ">(</span><span style="color: #008000; ">1</span><span style="color: #000000; ">);
        }
        </span><span style="color: #000000; ">mobility</span><span style="color: #000000; ">: </span><span style="color: #000000; ">BaseMobility</span><span style="color: #000000; "> {
            </span><span style="color: #800000; font-weight: bold; ">parameters</span><span style="color: #000000; ">:
                </span><span style="color: #000000; font-weight: bold; ">@display</span><span style="color: #000000; ">(</span><span style="color: #008000; ">&quot;p=292,120;i=block/cogwheel&quot;</span><span style="color: #000000; ">);
        }
        </span><span style="color: #000000; ">nic</span><span style="color: #000000; ">: </span><span style="color: #000000; ">Nic802154_TI_CC2420</span><span style="color: #000000; "> {
            </span><span style="color: #800000; font-weight: bold; ">parameters</span><span style="color: #000000; ">:
                </span><span style="color: #000000; font-weight: bold; ">@display</span><span style="color: #000000; ">(</span><span style="color: #008000; ">&quot;b=32,30;p=86,265;i=block/ifcard&quot;</span><span style="color: #000000; ">);
        }
        </span><span style="color: #000000; ">net</span><span style="color: #000000; ">: &lt;</span><span style="color: #000000; ">netwType</span><span style="color: #000000; ">&gt; </span><span style="color: #800000; font-weight: bold; ">like</span><span style="color: #000000; "> </span><span style="color: #000000; ">IBaseNetwLayer</span><span style="color: #000000; "> {
            </span><span style="color: #800000; font-weight: bold; ">parameters</span><span style="color: #000000; ">:
                </span><span style="color: #000000; font-weight: bold; ">@display</span><span style="color: #000000; ">(</span><span style="color: #008000; ">&quot;p=86,159&quot;</span><span style="color: #000000; ">);
        }
        </span><span style="color: #000000; ">transport</span><span style="color: #000000; ">: </span><span style="color: #000000; ">Aggregation</span><span style="color: #000000; ">;
        </span><span style="color: #000000; ">arp</span><span style="color: #000000; ">: </span><span style="color: #000000; ">ArpHost</span><span style="color: #000000; "> {
            </span><span style="color: #800000; font-weight: bold; ">parameters</span><span style="color: #000000; ">:
                </span><span style="color: #000000; font-weight: bold; ">@display</span><span style="color: #000000; ">(</span><span style="color: #008000; ">&quot;p=202,186&quot;</span><span style="color: #000000; ">);
        }
        </span><span style="color: #000000; ">app</span><span style="color: #000000; ">: </span><span style="color: #000000; ">SensorApplLayer</span><span style="color: #000000; "> {
            </span><span style="color: #800000; font-weight: bold; ">parameters</span><span style="color: #000000; ">:
                </span><span style="color: #000000; font-weight: bold; ">@display</span><span style="color: #000000; ">(</span><span style="color: #008000; ">&quot;p=86,60;i=block/app&quot;</span><span style="color: #000000; ">);

        }

    </span><span style="color: #800000; font-weight: bold; ">connections</span><span style="color: #000000; ">:
        </span><span style="color: #000000; ">net</span><span style="color: #000000; ">.</span><span style="color: #000000; ">lowerGateOut</span><span style="color: #000000; "> </span><span style="color: #800000; font-weight: bold; ">--&gt;</span><span style="color: #000000; "> </span><span style="color: #000000; ">nic</span><span style="color: #000000; ">.</span><span style="color: #000000; ">upperGateIn</span><span style="color: #000000; ">;
        </span><span style="color: #000000; ">net</span><span style="color: #000000; ">.</span><span style="color: #000000; ">lowerGateIn</span><span style="color: #000000; "> </span><span style="color: #800000; font-weight: bold; ">&lt;--</span><span style="color: #000000; "> </span><span style="color: #000000; ">nic</span><span style="color: #000000; ">.</span><span style="color: #000000; ">upperGateOut</span><span style="color: #000000; ">;
        </span><span style="color: #000000; ">net</span><span style="color: #000000; ">.</span><span style="color: #000000; ">lowerControlOut</span><span style="color: #000000; "> </span><span style="color: #800000; font-weight: bold; ">--&gt;</span><span style="color: #000000; "> </span><span style="color: #000000; ">nic</span><span style="color: #000000; ">.</span><span style="color: #000000; ">upperControlIn</span><span style="color: #000000; ">;
        </span><span style="color: #000000; ">net</span><span style="color: #000000; ">.</span><span style="color: #000000; ">lowerControlIn</span><span style="color: #000000; "> </span><span style="color: #800000; font-weight: bold; ">&lt;--</span><span style="color: #000000; "> </span><span style="color: #000000; ">nic</span><span style="color: #000000; ">.</span><span style="color: #000000; ">upperControlOut</span><span style="color: #000000; ">;

        </span><span style="color: #000000; ">net</span><span style="color: #000000; ">.</span><span style="color: #000000; ">upperGateOut</span><span style="color: #000000; "> </span><span style="color: #800000; font-weight: bold; ">--&gt;</span><span style="color: #000000; "> </span><span style="color: #000000; ">transport</span><span style="color: #000000; ">.</span><span style="color: #000000; ">lowerGateIn</span><span style="color: #000000; ">;
        </span><span style="color: #000000; ">net</span><span style="color: #000000; ">.</span><span style="color: #000000; ">upperGateIn</span><span style="color: #000000; "> </span><span style="color: #800000; font-weight: bold; ">&lt;--</span><span style="color: #000000; "> </span><span style="color: #000000; ">transport</span><span style="color: #000000; ">.</span><span style="color: #000000; ">lowerGateOut</span><span style="color: #000000; ">;
        </span><span style="color: #000000; ">net</span><span style="color: #000000; ">.</span><span style="color: #000000; ">upperControlOut</span><span style="color: #000000; "> </span><span style="color: #800000; font-weight: bold; ">--&gt;</span><span style="color: #000000; "> </span><span style="color: #000000; ">transport</span><span style="color: #000000; ">.</span><span style="color: #000000; ">lowerControlIn</span><span style="color: #000000; ">;
        </span><span style="color: #000000; ">net</span><span style="color: #000000; ">.</span><span style="color: #000000; ">upperControlIn</span><span style="color: #000000; "> </span><span style="color: #800000; font-weight: bold; ">&lt;--</span><span style="color: #000000; "> </span><span style="color: #000000; ">transport</span><span style="color: #000000; ">.</span><span style="color: #000000; ">lowerControlOut</span><span style="color: #000000; ">;

        </span><span style="color: #000000; ">transport</span><span style="color: #000000; ">.</span><span style="color: #000000; ">upperGateOut</span><span style="color: #000000; "> </span><span style="color: #800000; font-weight: bold; ">--&gt;</span><span style="color: #000000; "> </span><span style="color: #000000; ">app</span><span style="color: #000000; ">.</span><span style="color: #000000; ">lowerGateIn</span><span style="color: #000000; ">;
        </span><span style="color: #000000; ">transport</span><span style="color: #000000; ">.</span><span style="color: #000000; ">upperGateIn</span><span style="color: #000000; "> </span><span style="color: #800000; font-weight: bold; ">&lt;--</span><span style="color: #000000; "> </span><span style="color: #000000; ">app</span><span style="color: #000000; ">.</span><span style="color: #000000; ">lowerGateOut</span><span style="color: #000000; ">;
        </span><span style="color: #000000; ">transport</span><span style="color: #000000; ">.</span><span style="color: #000000; ">upperControlOut</span><span style="color: #000000; "> </span><span style="color: #800000; font-weight: bold; ">--&gt;</span><span style="color: #000000; "> </span><span style="color: #000000; ">app</span><span style="color: #000000; ">.</span><span style="color: #000000; ">lowerControlIn</span><span style="color: #000000; ">;
        </span><span style="color: #000000; ">transport</span><span style="color: #000000; ">.</span><span style="color: #000000; ">upperControlIn</span><span style="color: #000000; "> </span><span style="color: #800000; font-weight: bold; ">&lt;--</span><span style="color: #000000; "> </span><span style="color: #000000; ">app</span><span style="color: #000000; ">.</span><span style="color: #000000; ">lowerControlOut</span><span style="color: #000000; ">;


        </span><span style="color: #000000; ">radioIn</span><span style="color: #000000; "> </span><span style="color: #800000; font-weight: bold; ">--&gt;</span><span style="color: #000000; "> </span><span style="color: #000000; ">nic</span><span style="color: #000000; ">.</span><span style="color: #000000; ">radioIn</span><span style="color: #000000; ">;



}

</span></pre>
   <hr><p class="footer"><a href="http://creativecommons.org/licenses/by-sa/3.0" target="_top"><img src="by-sa.png"></a> This documentation is released under the <a href="http://creativecommons.org/licenses/by-sa/3.0" target="_top">Creative Commons license</a></p>
   </body>
</html>
